package com.aps.entity.domain.device;

import java.util.Date;

import javax.persistence.*;

import com.aps.entity.domain.BaseEntity;

import com.aps.entity.eunm.AdjustType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liaoguangan
 * @description <设备中心>
 * @date 2018/4/1 14:27
 */
@Table(name = "aps_device_center")
@Entity
@Data
@ApiModel("设备中心")
public class DeviceCenter extends BaseEntity {

    @Column
    @ApiModelProperty("设备代码")
    private String code;

    @Column
    @ApiModelProperty("设备名称")
    private String name;

    @Column
    @ApiModelProperty("设备类型代码")
    private String deviceTypeCode;

    @Column
    @ApiModelProperty("门店代码")
    private String storeCode;

    @Column
    @ApiModelProperty("可用开始时间")
    private Date enableStartTime;

    @Column
    @ApiModelProperty("可用结束时间")
    private Date enableEndTime;

    @Column
    @ApiModelProperty("设备状态")
    @Enumerated(EnumType.STRING)
    private AdjustType status;

    //##################################

    @Transient
    private String deviceTypeName;

    @Transient
    private String storeName;

}
